package com.open.capacity.common.util.skf;

import com.sun.jna.Structure;

import java.util.Arrays;
import java.util.Base64;
import java.util.List;

public class Struct_ECCCERTBLOB extends Structure {
    public byte[] cert = new byte[735];

    public static class ByReference extends Struct_ECCCERTBLOB implements Structure.ByReference {
    }

    public static class ByValue extends Struct_ECCCERTBLOB implements Structure.ByValue {
    }

    public String get_cert() {
        String cert_b64 = Base64.getEncoder().encodeToString(cert);
        return cert_b64;
    }

    @Override
    protected List getFieldOrder() {
        return Arrays.asList(new String[]{"cert"});
    }
}
